/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tecpizza;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.DecimalFormat;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFormattedTextField;
import negocio.Sabor;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
import javax.swing.text.MaskFormatter;
import negocio.*;

/**
 *
 * @author tecnico
 */
public class TelaPedidos extends javax.swing.JFrame {

    /**
     * Creates new form TelaPedidos
     */
    public TelaPedidos() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        labelTelefoneCliente = new javax.swing.JLabel();
        labelNome = new javax.swing.JLabel();
        labelEndereco = new javax.swing.JLabel();
        labelNumero = new javax.swing.JLabel();
        labelBairro = new javax.swing.JLabel();
        labelTamanho = new javax.swing.JLabel();
        labelSabores = new javax.swing.JLabel();
        textFieldTelCliente = new javax.swing.JTextField();
        try{
            textFieldTelCliente = new JFormattedTextField(new MaskFormatter("####-####"));
        }catch (Exception e){

        }
        textFieldNome = new javax.swing.JTextField();
        textFieldEnd = new javax.swing.JTextField();
        textFieldNum = new javax.swing.JTextField();
        textFieldBairro = new javax.swing.JTextField();
        comboTamanho = new javax.swing.JComboBox();
        comboSabor1 = new javax.swing.JComboBox();
        comboSabor2 = new javax.swing.JComboBox();
        comboSabor3 = new javax.swing.JComboBox();
        comboSabor4 = new javax.swing.JComboBox();
        buttonIncluir = new javax.swing.JButton();
        jScrollPane2 = new javax.swing.JScrollPane();
        tablePizza = new javax.swing.JTable();
        buttonIncluirPedido = new javax.swing.JButton();
        jLabelComplemento = new javax.swing.JLabel();
        TextFieldComplemento = new javax.swing.JTextField();
        labelTotal = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Cadastro de Pedidos");
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowActivated(java.awt.event.WindowEvent evt) {
                formWindowActivated(evt);
            }
        });

        labelTelefoneCliente.setText("Telefone Cliente:");

        labelNome.setText("Nome:");

        labelEndereco.setText("Endereço:");

        labelNumero.setText("Numero:");

        labelBairro.setText("Bairro:");

        labelTamanho.setText("Tamanho:");

        labelSabores.setText("Sabores:");

        textFieldTelCliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                textFieldTelClienteActionPerformed(evt);
            }
        });
        textFieldTelCliente.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                textFieldTelClienteFocusLost(evt);
            }
        });

        comboSabor1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                comboSabor1ActionPerformed(evt);
            }
        });

        buttonIncluir.setText("Incluir Pizza");
        buttonIncluir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonIncluirActionPerformed(evt);
            }
        });

        tablePizza.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Tamanho", "Sabor", "Sabor", "Sabor", "Sabor", "Total", "Excluir"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.Double.class, java.lang.Boolean.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false, true
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        tablePizza.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tablePizzaMouseClicked(evt);
            }
        });
        jScrollPane2.setViewportView(tablePizza);

        buttonIncluirPedido.setText("Incluir Pedido");
        buttonIncluirPedido.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonIncluirPedidoActionPerformed(evt);
            }
        });

        jLabelComplemento.setText("Complemento:");

        labelTotal.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        labelTotal.setForeground(new java.awt.Color(0, 51, 255));
        labelTotal.setText("Total: R$ 0,00");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(58, 58, 58)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 557, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(labelTamanho, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(labelSabores, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(comboTamanho, 0, 121, Short.MAX_VALUE)
                                    .addComponent(comboSabor1, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(labelTelefoneCliente)
                                    .addComponent(labelNome)
                                    .addComponent(labelEndereco)
                                    .addComponent(labelNumero)
                                    .addComponent(labelBairro))
                                .addGap(61, 61, 61)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(textFieldNome, javax.swing.GroupLayout.PREFERRED_SIZE, 218, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                        .addGroup(layout.createSequentialGroup()
                                            .addGap(36, 36, 36)
                                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                                .addComponent(buttonIncluir)
                                                .addComponent(comboSabor2, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(comboSabor3, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                                .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                                    .addComponent(textFieldNum, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                    .addComponent(jLabelComplemento))
                                                .addComponent(textFieldBairro, javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(textFieldTelCliente, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addComponent(textFieldEnd, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 264, Short.MAX_VALUE))
                                            .addGap(0, 0, Short.MAX_VALUE))))))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(comboSabor4, 0, 121, Short.MAX_VALUE)
                            .addComponent(TextFieldComplemento))
                        .addContainerGap(47, Short.MAX_VALUE))))
            .addGroup(layout.createSequentialGroup()
                .addGap(266, 266, 266)
                .addComponent(buttonIncluirPedido)
                .addContainerGap())
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(labelTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(65, 65, 65))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(48, 48, 48)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelTelefoneCliente)
                    .addComponent(textFieldTelCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelNome)
                    .addComponent(textFieldNome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelEndereco)
                    .addComponent(textFieldEnd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelNumero)
                    .addComponent(textFieldNum, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelComplemento)
                    .addComponent(TextFieldComplemento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(9, 9, 9)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(labelBairro)
                    .addComponent(textFieldBairro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(labelTamanho)
                    .addComponent(comboTamanho, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelSabores)
                    .addComponent(comboSabor4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(comboSabor2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(comboSabor3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(comboSabor1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(13, 13, 13)
                .addComponent(buttonIncluir)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(labelTotal)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(buttonIncluirPedido)
                .addContainerGap(55, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void textFieldTelClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_textFieldTelClienteActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_textFieldTelClienteActionPerformed

    private void comboSabor1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_comboSabor1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_comboSabor1ActionPerformed

    private void buttonIncluirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonIncluirActionPerformed
        Tamanho tam = new Tamanho();
        tam = tam.buscar(comboTamanho.getSelectedItem().toString());
        
        DefaultTableModel tTabela = (DefaultTableModel) tablePizza.getModel();
        int linha = tTabela.getRowCount();
        tTabela.addRow(new Object[]{1});

        tablePizza.setValueAt(comboTamanho.getSelectedItem().toString(), linha, 0);
        tablePizza.setValueAt(comboSabor1.getSelectedItem().toString(), linha, 1);
        tablePizza.setValueAt(comboSabor2.getSelectedItem().toString(), linha, 2);
        tablePizza.setValueAt(comboSabor3.getSelectedItem().toString(), linha, 3);
        tablePizza.setValueAt(comboSabor4.getSelectedItem().toString(), linha, 4);
        tablePizza.setValueAt(tam.getPreco(), linha, 5);
        
        atualizaPrecoTotal();
        
    }//GEN-LAST:event_buttonIncluirActionPerformed
    
    private void atualizaPrecoTotal(){
        float totalPreco = 0;
        for(int i = 0; i < tablePizza.getRowCount(); i++){
            String precoTemp = tablePizza.getValueAt(i, 5).toString();
            totalPreco = totalPreco + Float.parseFloat(precoTemp);
        }
        DecimalFormat df = new DecimalFormat("####.00");
        labelTotal.setText("Total: R$ " + df.format(totalPreco));
    }
    private void formWindowActivated(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowActivated
        //limpa todos os combos para fazer a "atualização"
        comboTamanho.removeAllItems();
        comboSabor1.removeAllItems();
        comboSabor2.removeAllItems();
        comboSabor3.removeAllItems();
        comboSabor4.removeAllItems();
        
        try {
            Tamanho tam = new Tamanho();
            ResultSet rs;
            rs = tam.listar();
            while (rs.next()){
                comboTamanho.addItem(rs.getString("nome"));
            }
            
            Sabor sabor = new Sabor();
            rs = sabor.listar();
            while(rs.next()){
                comboSabor1.addItem(rs.getString("nome"));
                comboSabor2.addItem(rs.getString("nome"));
                comboSabor3.addItem(rs.getString("nome"));
                comboSabor4.addItem(rs.getString("nome"));
            }
        } catch (SQLException ex) {
            Logger.getLogger(TelaPedidos.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_formWindowActivated

    private void textFieldTelClienteFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_textFieldTelClienteFocusLost
        if(!textFieldTelCliente.getText().equals("")){
            Cliente cliente = new Cliente();
            cliente = cliente.buscaClienteTelefone(textFieldTelCliente.getText());
        
            if(cliente != null){
                textFieldNome.setText(cliente.getNome());
                textFieldBairro.setText(cliente.getBairro());
                textFieldNum.setText(cliente.getNumero());
                textFieldEnd.setText(cliente.getEndereco());
                TextFieldComplemento.setText(cliente.getComplemento());
            }
            else{
                JOptionPane.showMessageDialog(null, "Número de telefone não cadastrado.\n Preencha as informações do cliente.");
            }
        }
    }//GEN-LAST:event_textFieldTelClienteFocusLost

    private void tablePizzaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tablePizzaMouseClicked
        if (tablePizza.getModel().getValueAt(tablePizza.getSelectedRow(), 6) == true) {
            if (JOptionPane.showConfirmDialog(null, "Deseja esta pizza deste pedido ?",
                    "Confirma Exclusão", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
                ((DefaultTableModel) tablePizza.getModel()).removeRow(tablePizza.getSelectedRow());
                atualizaPrecoTotal();
            }
        }
    }//GEN-LAST:event_tablePizzaMouseClicked

    private void buttonIncluirPedidoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonIncluirPedidoActionPerformed
    if(textFieldTelCliente.getText().equals("")){
        JOptionPane.showMessageDialog(null, "Telefone deve ser preenchido!");
        return;
    }
    if(textFieldNome.getText().equals("")){
        JOptionPane.showMessageDialog(null, "Nome deve ser preenchido!");
        return;
    }
    if(textFieldEnd.getText().equals("")){
        JOptionPane.showMessageDialog(null, "Endereço deve ser preenchido!");
        return;
    }
    if(textFieldNum.getText().equals("")){
        JOptionPane.showMessageDialog(null, "Número deve ser preenchido!");
        return;
    }
    if(textFieldBairro.getText().equals("")){
        JOptionPane.showMessageDialog(null, "Bairro deve ser preenchido!");
        return;
    }
    
    Cliente cliente = new Cliente();
    cliente = cliente.buscaClienteTelefone(textFieldTelCliente.getText());
    int numeroTemp = Integer.parseInt(textFieldNum.getText());
    if(cliente == null){
        cliente = new Cliente();
        cliente.setNome(textFieldNome.getText());
        cliente.setBairro(textFieldBairro.getText());
        cliente.setComplemento(TextFieldComplemento.getText());
        cliente.setNumero(textFieldNum.getText());
        cliente.setTelefone(textFieldTelCliente.getText());
        cliente.setEndereco(textFieldEnd.getText());
        cliente.salvar();
        
        cliente = cliente.buscaClienteTelefone(textFieldTelCliente.getText());
    }
    Pedido pedido = new Pedido();
    pedido.setData(null);
    pedido.setHora(null);
    pedido.setCliente(cliente);
    pedido.setTelefoneEntrega(textFieldTelCliente.getText());
    pedido.setEnderecoEntrega(textFieldEnd.getText());
    pedido.setBairroEntrega(textFieldBairro.getText());
    pedido.setComplementoEntrega(TextFieldComplemento.getText());
    pedido.setNumeroEntrega(numeroTemp);

    if(tablePizza.getRowCount() > 0){
        for(int nLinha = 0; nLinha < tablePizza.getRowCount(); nLinha++){
            Pizza pizza = new Pizza();
            Tamanho tam = new Tamanho();
            tam = tam.buscar(tablePizza.getValueAt(nLinha, 0).toString());
            pizza.setTamanho(tam);
            Sabor sabor = new Sabor();
            sabor = sabor.buscar(tablePizza.getValueAt(nLinha, 1).toString());
            pizza.setSabor1(sabor);
            sabor = sabor.buscar(tablePizza.getValueAt(nLinha, 2).toString());
            pizza.setSabor2(sabor);
            sabor = sabor.buscar(tablePizza.getValueAt(nLinha, 3).toString());
            pizza.setSabor3(sabor);
            sabor = sabor.buscar(tablePizza.getValueAt(nLinha, 4).toString());
            pizza.setSabor4(sabor);
            pedido.getPizzas().add(pizza);
        }

    }
    pedido.salvar(); 

    JOptionPane.showMessageDialog(null, "Pedido cadastrado com Sucesso!");   

    textFieldTelCliente.setText("");
    textFieldNome.setText("");
    textFieldEnd.setText("");    
    textFieldNum.setText("");
    TextFieldComplemento.setText("");
    textFieldBairro.setText("");
    while (tablePizza.getRowCount() > 0) {
                ((DefaultTableModel) tablePizza.getModel()).removeRow(0);
       }
    }//GEN-LAST:event_buttonIncluirPedidoActionPerformed

    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTextField TextFieldComplemento;
    private javax.swing.JButton buttonIncluir;
    private javax.swing.JButton buttonIncluirPedido;
    private javax.swing.JComboBox comboSabor1;
    private javax.swing.JComboBox comboSabor2;
    private javax.swing.JComboBox comboSabor3;
    private javax.swing.JComboBox comboSabor4;
    private javax.swing.JComboBox comboTamanho;
    private javax.swing.JLabel jLabelComplemento;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JLabel labelBairro;
    private javax.swing.JLabel labelEndereco;
    private javax.swing.JLabel labelNome;
    private javax.swing.JLabel labelNumero;
    private javax.swing.JLabel labelSabores;
    private javax.swing.JLabel labelTamanho;
    private javax.swing.JLabel labelTelefoneCliente;
    private javax.swing.JLabel labelTotal;
    private javax.swing.JTable tablePizza;
    private javax.swing.JTextField textFieldBairro;
    private javax.swing.JTextField textFieldEnd;
    private javax.swing.JTextField textFieldNome;
    private javax.swing.JTextField textFieldNum;
    private javax.swing.JTextField textFieldTelCliente;
    // End of variables declaration//GEN-END:variables
}
